* {
    font-family: 'montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    /* background: #333; */
}

.login-box {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh; /* vh 视口高度 viewport height 百分比单位*/
    background-image: linear-gradient(
        45deg,
        #9fbaa8,
        #31354c
    ); /*设置颜色渐变 方向(0deg垂直向上) 起点颜色 终点颜色*/
    transition: 0.4s; /*过度效果  property duration timing-function delay 默认属性:all 0 ease 0*/
}

.login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /*定义 2D 转换8 */
    color: white;
    text-align: center;
}

.txtb {
    display: block;
    box-sizing: border-box;
    width: 240px;
    background: #ffffff28;
    border: 1px solid white;
    padding: 10px 20px;
    color: white;
    outline: none;
    margin: 10px 0;
    border-radius: 6px;
    text-align: center;
}
.txtb-code {
    /* display: block; */
    box-sizing: border-box;
    width: 200px;
    background: #ffffff28;
    border: 1px solid white;
    padding: 10px 20px;
    color: white;
    outline: none;
    margin: 0 0 10px 0;
    border-radius: 6px;
    text-align: center;
}
.register-btn {
    width: 240px;
    background: #2c3e50;
    border: 0;
    color: white;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 30px 0 10px 0;
}
.login-btn {
    width: 240px;
    background: #2c3e50;
    border: 0;
    color: white;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 30px 0 10px 0;
}
.code-btn {
    width: 40px;
    background: #2c3e50;
    border: 0;
    color: white;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
}